package com.didi.gulimall.api;

import com.didi.gulimall.common.entity.LocalMqEntity;
import com.didi.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 10626
 */
@FeignClient("gulimall-ware")
public interface WareApiService {


    @GetMapping("ware/wareinfo/fare")
    R getFare(@RequestParam("addrId") Long addrId);


    @PostMapping("localmq/savema")
     R saveLocalmq(@RequestBody LocalMqEntity localMqEntity);

}
